package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.SystemInform;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SystemInformMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SystemInform record);

    SystemInform selectByPrimaryKey(Long id);

    List<SystemInform> selectAll();

    List<SystemInform> selectForList(QueryObject qo);

    int updateByPrimaryKey(SystemInform record);

    //发布系统通知给每个用户
    void insertMessagesInUser(@Param("userId") Long userId, @Param("systemMessageId") Long systemMessageId);

    void deleteRelationMessage(@Param("userId") Long userId, @Param("messageId") Long messageId);
}